package com.zhuanzhuan.hero.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuanzhuan.hero.user.entity.HeroUserVisitRecord;
import com.zhuanzhuan.hero.user.vo.UserListItemVO;

import java.util.List;

/**
 * dal Interface:HeroUserVisitRecord
 * @author hanjunjun
 * @date 2024-7-2
 */
public interface HeroUserVisitRecordService extends IService<HeroUserVisitRecord> {

    /**
     * 清空别人访问自己的记录
     *
     * @param uid
     * @return void
     * @author  hanjunjun
     * @date 2024/7/2
     **/
    void clearVisitRecord(Long uid);

    /**
     * 保存访客记录
     *
     * @param fromUid
     * @param toUid
     * @return void
     * @author  hanjunjun
     * @date 2024/7/2
     **/
    void saveVisitRecord(Long fromUid, Long toUid);

    /**
     * 查询访客记录
     *
     * @param selfUid
     * @param homemakerUid  客态时有值，被访问者的uid
     * @return java.util.List<com.zhuanzhuan.hero.user.vo.UserListItemVO>
     * @author  hanjunjun
     * @date 2024/7/2
     **/
    List<UserListItemVO> queryVisitRecordList(Long selfUid, Long homemakerUid);

    List<HeroUserVisitRecord> listByToUid(Long toUid);
}